/*
 * QLabelAdapter.h  0.4.0 / Nov 17, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#ifndef QLABELADAPTER_H
#define QLABELADAPTER_H

#include "Cute4jSwing.h"

// QLabelAdapter Class. --------------------------------------------------------

/*!
 * \brief QLabel Adapter.
 *
 * \author Slobodan Vrkacevic
 * \version 0.4.0
 */
class CUTE4J_EXPORT QLabelAdapter : public QLabel
{
public:
  QLabelAdapter();
public:
  QIcon icon() const;
  void setIcon(const QIcon &icon);
  void setIconSize(const QSize &size);
public:
  virtual QSize sizeHint() const;
protected:
  void paintEvent(QPaintEvent *e);
protected:
  QIcon m_icon;
  QSize m_iconSize;
};

#endif // QLABELADAPTER_H
